package edu.colorado.cs.correll.cudroplet.shaperecognition;

import com.vividsolutions.jts.algorithm.match.HausdorffSimilarityMeasure;
import com.vividsolutions.jts.algorithm.match.SimilarityMeasure;

public class Test {
	int id;
	SimilarityMeasure similarityMeasure;
	double threshold;
	int color;
	ShapeType shapeType;

	public Test(int id, SimilarityMeasure similarityMeasure, ShapeType shapeType, double threshold, int color) {
		this.id = id;
		this.similarityMeasure = similarityMeasure;
		this.threshold = threshold;
		this.color = color;
		this.shapeType = shapeType;
	}

	public static String getShapeTypeName(ShapeType shapeType) {
		if(shapeType.equals(ShapeType.CONVEX_HULL)) {
			return "Convex Hull";
		} else if(shapeType.equals(ShapeType.ALPHA_SHAPE)) {
			return "Alpha Shape";
		} else {
			return "Union of Balls";
		}
	}

	public static String getSimilarityMeasureName(SimilarityMeasure similarityMeasure) {
		if(similarityMeasure.getClass().equals(HausdorffSimilarityMeasure.class)) {
			return "Hausdorff";
		} else {
			return "Area";
		}
	}
}
